home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Very Best of Atari Inside
/
The Very Best of Atari Inside 1.iso
/
mint
/
mntlb20
/
lib
/
getpid.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-09-05
|
243b
|
9 lines
#include <osbind.h>
#include <basepage.h>
#include "mintbind.h"
extern int __mint;
int getpid() { return __mint ? Pgetpid() : ( ((long)_base) >> 8 ); }
int getppid() { return __mint ? Pgetppid() : (((long)(_base->p_parent)) >> 8); }